package com.snow.java.base.entity;

import jdk.net.SocketFlow;
import lombok.Data;

@Data
public class Student {

    /**主键Id*/
    private int id;

    /**姓名*/
    private String name;

    /**年级*/
    private int grade;

    /**班级*/
    private int classes;

    /**分数*/
    private int score;

    /**状态*/
    private Status status;

    public Student() {

    }

    public Student(int id, String name, int grade, int classes, int score, Status status) {
        this.id = id;
        this.name = name;
        this.grade = grade;
        this.classes = classes;
        this.score = score;
        this.status = status;
    }

    public Student(int id, String name, int grade, int classes, int score) {
        this.id = id;
        this.name = name;
        this.grade = grade;
        this.classes = classes;
        this.score = score;
    }

    /**创建枚举*/
    public enum Status {
        FREE,
        BUSY,
        VOCATION;
    }
}
